

<div class="row-fluid">
	<div class="span6">
		<p class="rubrik">
			<?

			echo "<a class='ink' href='".base_url()."almanak/side/".$id."'>".$navne[0]."</a>";
			echo " er ";

			if($type_spec == "Politisk udvalg" or $type_spec == "sted"){
				echo "et ";
			}
			else {
				echo "en ";
			}

			if($type_spec == "individ") {
				if(!empty($element_data['koen'])) {
					$koen = strtolower($element_data['koen']);
					echo $koen;
				}
				else { echo "person"; }
				echo " af æten ";
				echo anchor("almanak/side/".$element_data['race_id'],$element_data['race'],"class='ink'")." ";
				if(!empty($stamdata['birth'])) {
						$tid_interval = $this->tid_model->alder($stamdata['birth'],$ingame['ingame_nu']);
						$tid_interval_rev = str_replace("-","",$tid_interval);
						if($tid_interval < 0) {
							echo " og bliver født om ".$tid_interval_rev.". ";
						}
						else{
							echo " født for ".$this->tid_model->alder($stamdata['birth'],$ingame['ingame_nu'])." siden. ";
						}
				}	
				else {echo ". ";}
			}
			else {
				echo $type_spec;
				if(!empty($stamdata['birth'])) {
					echo " opstået for ".$this->tid_model->alder($stamdata['birth'],$ingame['ingame_nu'])." siden. ";
				}	
				else {echo ". ";}

			}


			if($type_spec == "individ" and !empty($element_data['foraeldrer'])){

				if($element_data['koen'] == "Mand") { echo "Han";}
				else { echo "Hun";}
				echo " er ";
				if($element_data['koen'] == "Mand") { echo "søn"; }
				else { echo "datter";}
				echo " af ";
			//	print_r($element_data['foraeldrer']);
				$slut = count($element_data['foraeldrer']);
				foreach($element_data['foraeldrer'] as $parent) {
					echo anchor("almanak/side/".$parent['id'],$parent['navn'],"class='ink'");
					
					if($slut > 1) { 
						echo " og ";
						
					}
					$slut = $slut - 1;


				}
				echo ". ";

				if(!empty($element_data['boern'])) {

					if($element_data['koen'] == "Mand") { echo "Han";}
					else { echo "Hun";}
					echo " har børnene "; 
					$slut = count($element_data['boern']);
					foreach($element_data['boern'] as $child) {
						echo anchor("almanak/side/".$child['id'],$child['navn'],"class='ink'");
						
						if($slut > 1) { 
							echo " og ";
							
						}
						$slut = $slut - 1;


					}
					echo ". ";

				}

//				foreach($over as $o) {
//					echo anchor("almanak/side/".$o['over_id'],$o['navn'],"class='ink'")." og ";
//			}


	echo "</p>"; 				


			}



			?>





	</div>

	<div class="span6">

<?	 if($type_spec == "begivenhed" or $type_spec == "sted" or $type_spec == "individ") { ?>
		<div class="watermark" style="background-image:url('<? echo base_url();?>img/ikoner/type_spec_watermark/<? echo $type_spec;?>.png')">
<?	}
	else {?>
		<div class="watermark" style="background-image:url('<? echo base_url();?>img/ikoner/type_spec_watermark/gruppe.png')">

<? } ?>

<?
	
	if($type_spec == "individ" and $element_data['rollespiller'] != "NPC") {
		echo "<p class='rubrik'>";
		echo "Hovedperson spillet af <b>".$element_data['rollespiller']."</b>";

		echo "</p>";
	}

?>

<p class="rubrik" style="overflow:auto;">
	<span style="float:right;">

		<a href="#" class="rubrik">Vis</a>
		<a href="<? echo base_url(); ?>almanak/side/<? echo $id; ?>/rediger_navn" class="rediger"></a>

			<img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" />

	</span>
	Navn 

</p>



<p class="rubrik"  style="overflow:auto;">
	<span style="float:right;">

		<a href="#" class="rubrik">Vis</a>
		<a href="<? echo base_url(); ?>almanak/side/<? echo $id; ?>/rediger_birth" class="rediger"></a>
		<?
		//echo $stamdata['birth']; 
		if($stamdata['birth'] != 0) {
			echo img("img/ikoner/tjek/flueben_circled.png");
		}
		else { echo img("img/ikoner/tjek/kryds_circled.png"); }
		?>
		<!img src="<? echo base_url(); ?>" />

	</span>
	Fødsel 

</p>

<p class="rubrik"  style="overflow:auto;">
	<span style="float:right;">

		<a href="#" class="rubrik">Vis</a>
		<a href="<? echo base_url(); ?>almanak/side/<? echo $id; ?>/rediger_death" class="rediger"></a>
		<?
		//echo $stamdata['birth']; 
		if($stamdata['death'] != 0) {
			echo img("img/ikoner/tjek/flueben_circled.png");
		}
		else { echo img("img/ikoner/tjek/kryds_circled.png"); }
		?>
		<!img src="<? echo base_url(); ?>" />

	</span>
	Død 

</p>


<!--p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<!--p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p>
<p class="rubrik">Parameter <img src="<? echo base_url(); ?>img/ikoner/rediger_ikon.png" /> <img src="<? echo base_url(); ?>img/ikoner/tjek/flueben_circled.png" /></p-->


		</div>

	</div>



</div>
